home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / FileSignature.h < prev    next >
Text File  |  1997-06-28  |  609b  |  31 lines

  1. // FileSignature.h
  2.  
  3. #ifndef FileSignature_h
  4. #define FileSignature_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class FileSignature
  11.   {
  12.     private:
  13.         uint32 signature;
  14.     
  15.         FileSignature( uint32 value )
  16.           : signature( value )
  17.           {}
  18.         
  19.     public:
  20.         static FileSignature Make( uint32 value )        { return value; }
  21.     
  22.         uint32 Signature() const                            { return signature; }
  23.         
  24.         bool operator==( FileSignature f ) const        { return signature == f.signature; }
  25.         bool operator!=( FileSignature f ) const        { return signature != f.signature; }
  26.         
  27.         static FileSignature TeachText()                    { return 'ttxt'; }
  28.   };
  29.  
  30. #endif
  31.